var child_process = require('child_process');

new Promise((resolve, reject) => {
	child_process.exec(
	'ffmpeg -i C:\\Users\\admin\\Desktop\\linshi__2\\1539591593149.mp3 -id3v2_version 3 C:\\Users\\admin\\Desktop\\linshi__2\\15395915931491.mp3'
	
	, { encoding: 'GBK' }, (error, stdout, stderr) => {
		const r = { error, stdout, stderr };
		console.log('child_process.exec ffmpeg run result：', r);
		if (error) {
			reject(r);
		} else {
			resolve(r);
		}
	});
});

// new Promise((resolve, reject) => {
	// child_process.exec('ffmpeg -i /data/test/testjs/test1/1.mp3 -id3v2_version 3 /data/test/testjs/test1/1.mp3', { encoding: 'GBK' }, (error, stdout, stderr) => {
		// const r = { error, stdout, stderr };
		// console.log('child_process.exec ffmpeg run result：', r);
		// if (error) {
			// reject(r);
		// } else {
			// resolve(r);
		// }
	// });
// });